Import('env')
Import('host')
Import('libs')
Import('drv')

if host == "gp2x":
    env.Program("cube2.gpe", "cube2.c", LIBS=libs)
else:
    env.Program("cube2", "cube2.c", LIBS=libs)

if drv is not None:
    env.Command(str(drv[0]).split("/")[-1], drv[0], Copy('$TARGET', '$SOURCE'))
